package com.mjf.cjt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mjf.cjt.domain.OrgEntity;
import com.mjf.cjt.mapper.OrgMapper;
import com.mjf.cjt.service.OrgService;
import org.springframework.stereotype.Service;

@Service
public class OrgServiceImpl extends ServiceImpl<OrgMapper, OrgEntity> implements OrgService {
    @Override
    public OrgEntity getOrg(String code) {
        LambdaQueryWrapper<OrgEntity> qw = new LambdaQueryWrapper<>();
        qw.eq(OrgEntity :: getCode, code);
        return getOne(qw);
    }
}
